<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    function fn(data){
        console.log("json测试",data);
    }
    // 动态创建script标签 发起请求 
    var script = document.createElement("script");
    script.src = "http://localhost:3000/users/abc";
    document.head.appendChild(script);

</script>
<!--  type="text/javascript" 将脚本中的内容作为js语法解析 -->
<!-- "fn({"name":"user","age":18}))"  =>  将脚本中的内容作为js语法解析  => 函数调用 -->
<!-- <script src="http://localhost:3000/users/abc" type="text/javascript"></script> -->
</html>